package tech.aistar.day01;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 本类功能:HttpServlet使用到了模板设计模式
 *
 * 模板类中负责定义业务流程的方法-具体的实现延迟到各个子类中去实现
 *
 * HttpServlet extends GenericServlet
 *
 * @author cxylk
 * @date 2020/9/15 18:19
 */
@WebServlet(urlPatterns = "/day01/http")
public class ThreeServlet extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("service..");
    }
}
